package com.hwh.blog.service;

import com.hwh.blog.po.Blog;
import com.hwh.blog.qu.BlogQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface BlogService {
    Blog getBlog(Long id);

   Page<Blog> listBlog(Pageable pageable, BlogQuery blog);
   Blog saveBlog(Blog blog);
   Blog updateBlog(Long id,Blog blog);
   void deleteBlog(Long id);
   Page<Blog> listBlog(Pageable pageable);
   Page<Blog> listBlog(Pageable pageable,String query);
   Blog getAndConvert(Long id);
   List<Blog> listRecommendBlogTop(Integer size);
   Map<String,List<Blog>> archiveBlog();
   Long countBlog();
}
